﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CustomerDashBoard.aspx.cs"
    Inherits="GridViewDemo_CustomerDashBoard" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table>
           <tr>
            <td>
                <%--<asp:UpdatePanel ID="updatePnlX" runat="server">
                    <ContentTemplate>--%>
                <asp:GridView Width="1230px" ID="grdCustDashBoard" runat="server" 
                    AutoGenerateColumns="False" onrowcommand="mere_RowCommand">
                    <Columns>
                        <asp:BoundField HeaderText="Name" DataField="CustomerName" ItemStyle-Wrap="false">
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Balance(Rs.)" DataField="BalanceAmt" ControlStyle-Width="281">
                        </asp:BoundField>
                        <asp:BoundField HeaderText="A/C No." DataField="BankAcNo" ControlStyle-Width="281">
                        </asp:BoundField>
                        <asp:TemplateField HeaderStyle-Wrap="false" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="35px"
                            HeaderText="Edit">
                            <ItemTemplate>
                                <asp:LinkButton ID="imgEdit" runat="server" ToolTip="Edit" Text="Edit." CommandName="Edit"
                                    CommandArgument='<%#Eval("CustomerID") %>' />
                            </ItemTemplate>
                            <HeaderStyle Wrap="False"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <%-- </ContentTemplate>
                </asp:UpdatePanel>--%>
            </td>
        </tr>
    </table>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" 
        GridLines="None" onrowediting="GridView1_RowEditing">
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <Columns>
            <asp:CommandField HeaderText="Edit" ShowCancelButton="False" 
                ShowEditButton="True" />
        </Columns>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#999999" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    </form>
</body>
</html>
